package com.sh169.pojos;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;
@Table("sh_collect")
public class Collect extends BasePojo{

	private static final long serialVersionUID = -3390794402387592686L;
	@Id
	@Column
	private int id;
	@Column
	private int productid;
	@One(field="productid",target=Product.class)
	private Product product;
	@Column("fromuserid")
	private int fromUserid;
	@Column("createtime")
	private Date createTime;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getProductid() {
		return productid;
	}
	public void setProductid(int productid) {
		this.productid = productid;
	}
	public int getFromUserid() {
		return fromUserid;
	}
	public void setFromUserid(int fromUserid) {
		this.fromUserid = fromUserid;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
}
